package com.zpp.common.core.constants;

/**
 * redis需要的常量
 */
public class CacheConstants {
    public final static String LOGIN_TOKEN_KEY = "loginToken:";

    public final static long EXPIRE_TIME = 720;    //过期时间

    public final static long REFRESH_TIME = 180;   //重置过期时间的临界值

    public final static String EMAIL_CODE_KEY = "email:code:"; //记录用户登录时发送的验证码信息

    public final static String CODE_COUNT_KEY = "code:count:"; //记录每个用户一天获取验证码的次数

    public final static long CODE_EXPIRE_TIME = 300;    //验证码过期时间

    public final static long CODE_MAX_COUNT = 10;       //验证码一天获取最大次数

    public final static  String EXAM_UNFINISHED_LIST = "exam:unfinished:list";   //未完成竞赛列表

    public final static  String EXAM_HISTORY_LIST = "exam:history:list";   //历史竞赛列表

    public final static  String EXAM_DETAIL = "exam:detail:";   //竞赛详细信息

    public final static  String USER_EXAM_LIST = "user:exam:list:";   //用户竞赛列表

    public final static  String USER_DETAIL = "user:detail:";   //用户详情信息

    public final static  long USER_EXP = 10;   //用户详情信息key的过期时间

    public final static String USER_UPLOAD_TIMES_KEY = "u:u:t";  //存储用户上传文件次数的外层key
}
